package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_bonus_detail;

import cn.com.api.mapper.ApiU_bonus_detailMapper;

import cn.com.api.service.ApiU_bonus_detailService;

/**
 * 
 **/
@Service
public class U_bonus_detailServiceImplBase {
	@Autowired
	private ApiU_bonus_detailMapper apiU_bonus_detailMapper;
    
    // 根据id获取
	public ApiU_bonus_detail findU_bonus_detailById(Integer id){
		ApiU_bonus_detail u_bonus_detail = apiU_bonus_detailMapper.findU_bonus_detailById( id );
		return u_bonus_detail;
	}
    
    //查看数据集
	public List<ApiU_bonus_detail> findU_bonus_details(){
        List<ApiU_bonus_detail> u_bonus_details = apiU_bonus_detailMapper.findU_bonus_details();
		return u_bonus_details;
    }
    
	// 添加
	public int insertU_bonus_detail(ApiU_bonus_detail u_bonus_detail){
		int ret_I= apiU_bonus_detailMapper.insertU_bonus_detail(u_bonus_detail);
		return ret_I;
	}

	// 修改
	public int updateU_bonus_detail(ApiU_bonus_detail u_bonus_detail){
		int ret_I= apiU_bonus_detailMapper.updateU_bonus_detail(u_bonus_detail);
		return ret_I;
	}
	
    // 删除
	public int deleteU_bonus_detail(Integer id){
		int ret_I= apiU_bonus_detailMapper.deleteU_bonus_detail( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


